befriend (a) pet

Translations
подружиться с (кем-то) питомцем
It's important to befriend a pet before trying to train it.
Важно подружиться с питомцем, прежде чем пытаться его дрессировать.